package com.tfswue.jqr;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@MapperScan("com.tfswue.jqr.mapper")
// 开启定时任务
@EnableScheduling
// 开启缓存——Redis
@EnableCaching

@SpringBootApplication
//@SpringBootConfiguration
//@EnableAutoConfiguration
//@ComponentScan(basePackages = "com.tfswue")
public class SpringbootDemo01Application {
    public static void main(String[] args) {
        SpringApplication.run(SpringbootDemo01Application.class, args);
//        var info = SpringApplication.run(SpringbootDemo01Application.class, args);//JDK10之后，var自动匹配变量类型
//        String[] beanDefinitionNames = info.getBeanDefinitionNames();
//        //dispatcherServlet、viewResolver、characterEncodingFilter、multipartResolver
//        for (String beanDefinitionName : info.getBeanDefinitionNames()) {
//            System.out.println(beanDefinitionName);
//        }


    }

}
